package pers.xiaojun.boot.module.system.controller.dict.vo.type;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import pers.xiaojun.boot.common.constants.DateTimePatternConstants;
import pers.xiaojun.boot.common.pojo.PageParam;

import java.time.LocalDateTime;

/**
 * 字典类型分页/条件查询实体
 *
 * @author xiaojun
 * @since 2025-11-05
 */
@Schema(description = "字典类型分页/条件查询实体-VO")
@EqualsAndHashCode(callSuper = true)
@Data
public class DictTypeQueryReqVO extends PageParam {

    @Schema(description = "字典类型名称，模糊匹配", example = "芋道")
    private String name;

    @Schema(description = "字典类型，模糊匹配", example = "sys_common_sex")
    @Size(max = 100, message = "字典类型类型长度不能超过100个字符")
    private String type;

    @Schema(description = "展示状态，参见 CommonStatusEnum 枚举类", example = "1")
    private Integer status;

    @DateTimeFormat(pattern = DateTimePatternConstants.ISO_DATE_TIME)
    @Schema(description = "创建时间")
    private LocalDateTime[] createTime;
}
